<?php defined('SYSPATH') OR die('No direct access allowed.');
if (isset($errors) && is_array($errors))
{?>
<div id="error">
<?php
	foreach ($errors as $message)
	{
	  echo __('Error:') . ' ' . $message . '<br />' . PHP_EOL;
	}
?>
</div>
<?php
}
echo Form::open();
?>
<fieldset>
  <legend><?php echo __('Validate'); ?></legend>
  <ol>
    <li>
		<div>An email has been sent to <?php echo $user_email; ?> please enter the varification code in the box below:</div>
		<div><?php echo Form::input('validate', '', array('id' => 'validate', 'maxlength' => 10)) . PHP_EOL; ?></div>
    </li>
	<li>
      <?php
        echo Form::label('resend', __('Click this button to resend the validation code'), array('class' => 'login'));
        echo Form::submit('resend', __('Resend Email'), array('class' => 'submit'));
      ?>
	</li>
    <li>
		<div>Please enter the characters shown in the image below:</div>
		<div><?php echo $captcha->render() . PHP_EOL; ?></div>
		<div><?php echo Form::input('captcha', '', array('id' => 'captcha', 'maxlength' => 5)) . PHP_EOL; ?></div>
	</li>
    <li>
        <?php
          echo Form::submit('submit', __('Validate'), array('class' => 'submit'));
        ?>
    </li>
  </ol>
</fieldset>
<?php
echo Form::close();
?>